<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOmsSyncLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('el_oms_sync_log', function (Blueprint $table) {
            $table->increments('id');
            $table->string('file')->nullable(); //相关文件
            $table->string('type')->nullable(); //同步数据类型：Order 订单数据;refund 退换货数据；store 库存数据;OrderShip 回写订单发货数据
            $table->mediumText('success_message')->nullable(); //成功详细信息
            $table->mediumText('failed_message')->nullable(); //失败详细信息
            //其他待补充字段
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('el_oms_upload_log');
    }
}
